import { eventBus } from "./API/EventBus"
import { PlayerManager } from "./Core/PlayerManager"
import * as shipData from "@/Data/ship.json"
console.log("开始加载ing")
console.clear()
world.onPlayerJoin(({entity})=>{
    entity.player.invisible = true
    entity.player.showName = false
 //   entity.player.disableInputDirection = GameInputDirection.BOTH
    PlayerManager.init(entity, shipData["圣特立尼达号"])
})

remoteChannel.onServerEvent((data)=>{
    eventBus.run("onClientMessage", data)
})